//
//  ArgnaViewController.m
//  MyLottery
//
//  Created by wpapple on 16/5/24.
//  Copyright © 2016年 wpapple. All rights reserved.
//

#import "ArgnaViewController.h"

@interface ArgnaViewController ()
@property (weak, nonatomic) IBOutlet UISegmentedControl *titleSegmented;

@end

@implementation ArgnaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"NLArenaNavBar64"] forBarMetrics:UIBarMetricsDefault];
    
    self.view.layer.contents = (__bridge id _Nullable)([UIImage imageNamed:@"NLArenaBackground"].CGImage);
    
    [self.titleSegmented setBackgroundImage:[UIImage imageNamed:@"SegmentBgNormal"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    
    [self.titleSegmented setBackgroundImage:[UIImage imageNamed:@"SegmentBgSelect"] forState:UIControlStateSelected barMetrics:UIBarMetricsDefault];
    
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    
    [dict setObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName];
    
    [dict setValue:[UIFont fontWithName:@"Arial-BoldItalicMT" size:25.0] forKey:NSFontAttributeName];
    
    [self.titleSegmented setTitleTextAttributes:dict forState:UIControlStateNormal];
    
    [self.titleSegmented setTitleTextAttributes:dict forState:UIControlStateSelected];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
